package service;

import dao.CustomerDao;
import pojo.Customer;

public class CustomerService {
	CustomerDao cdao;
	public Customer loginByName(Customer c) {
		cdao=new CustomerDao();
		Customer customer=cdao.loginByName(c);
		
		return customer;
	}
	public int addCustomer(Customer c) {
		cdao=new CustomerDao();
		int flag=cdao.addCustomer(c);
		return flag;
	}

}
